package org.javaboy.vhr.mapper;

import org.apache.ibatis.annotations.Param;
import org.javaboy.vhr.model.Employee;
import org.javaboy.vhr.model.Salary;

import javax.sql.rowset.serial.SerialArray;
import java.util.Date;
import java.util.List;

public interface SalaryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Salary record);

    int insertSelective(Salary record);

    Salary selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Salary record);

    int updateByPrimaryKey(Salary record);

    List<Salary> getAllSalaries();

    Long getTotal(@Param("sal") Salary salary, @Param("beginDateScope") Date[] beginDateScope);

    List<Employee> getSalaryByPage(@Param("page") Integer page, @Param("size") Integer size, @Param("sal") Salary salary, @Param("beginDateScope") Date[] beginDateScope);



}